//
//  TempViewController.m
//  weibo-OC
//
//  Created by diyuyma on 16/3/20.
//  Copyright © 2016年 zhangkaiyun. All rights reserved.
//

#import "TempViewController.h"

@interface TempViewController ()

@end

@implementation TempViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [[[UIColor alloc] init] randomColor];
    self.title = [NSString stringWithFormat:@"%ld耶", self.navigationController.childViewControllers.count];
    
}

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    TempViewController *temp = [[TempViewController alloc] init];
    [self.navigationController pushViewController:temp animated:true];
}

@end
